package com.buba.springcloud.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.buba.springcloud.pojo.Document;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

@Service
public interface IDocumentService extends IService<Document> {

    /**
     * 上传文档
     */
    String upload(MultipartFile mf, Integer userId);

    /**
     * 获取文档列表
     */
    List<Document> selectList(Integer userId);

    /**
     *根据name查记录详情
     */
    Document detailByName(String name);

    void loadPDFByPage(String pdfName, HttpServletResponse response, HttpServletRequest request);
}
